<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  <head>
    <title>Login page</title>
  </head>
  <body>
    <h1>Login page</h1>
    <p th:if="${error}">Wrong user or password</p>
    
    <form th:action="@{/login}" method="post">
      <label for="username">Username</label>:
      <input type="text" id="username" name="username" /> <br />
      
      <label for="password">Password</label>:
      <input type="password" id="password" name="password" /> <br />
      
      <input type="submit" value="Log in" />      
    </form>
    
  </body>
</html>